package io.adrainty.bolee.trade.hystrix;

import io.adrainty.bolee.framework.commons.basic.ResponseCode;
import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.framework.commons.utils.ResultDTOUtil;
import io.adrainty.bolee.trade.feign.ICommonPayFeign;
import io.adrainty.bolee.trade.models.entity.RefundRecordEntity;
import io.adrainty.bolee.trade.models.entity.TradeEntity;
import org.springframework.stereotype.Component;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/31 下午11:14
 */

@Component
public class CommonPayFeignHystrix implements ICommonPayFeign {
    @Override
    public ResultDTO<TradeEntity> queryTrade(TradeEntity tradeVO) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<TradeEntity> refundTrade(TradeEntity tradeVO) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<RefundRecordEntity> queryRefundTrade(RefundRecordEntity refundRecordEntity) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<TradeEntity> closeTrade(TradeEntity tradeVO) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<String> downLoadBill(TradeEntity tradeVO) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<Boolean> syncPaymentJob() {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }
}
